package org.wukongcrm.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 部门表
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "department")
public class Department implements Serializable {
    @TableId(value = "dept_no", type = IdType.INPUT)
    private Integer deptNo;

    /**
     * 父级ID 顶级部门为0
     */
    @TableField(value = "parent_id")
    private Integer parentId;

    /**
     * 部门名称
     */
    @TableField(value = "`name`")
    private String name;

    /**
     * 部门备注
     */
    @TableField(value = "remark")
    private String remark;

    /**
     * 部门负责人
     */
    @TableField(value = "owner_user_id")
    private Long ownerUserId;

    private static final long serialVersionUID = 1L;
}